package com.rd.student.jiaji.class4.suyan.zrrd.day05;

import java.util.Arrays;
import java.util.Random;

public class Demo07 {
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5,6,7,8,9,10};
        Random ran=new Random();
        for (int i=0;i<arr.length;i++){
            int count=ran.nextInt(arr.length);
            int temp=arr[i];
            arr[i]=arr[count];
            arr[count]=temp;
        }
        System.out.println(Arrays.toString(arr));

    }
}
